#include <iostream>

using namespace std;


int main()
{
  unsigned aux,x,n,suma=0;
  float Ma;
  std::cout<<"n=";
  std::cin>>n;
  std::cout<<"\n";
  aux=n;
  while(aux)
    {
      std::cout<<"x=";
      std::cin>>x;
      std::cout<<'\n';
      suma=suma+x;
      aux--;
    }
  Ma=(float)suma/n;
  std::cout<<"Ma="<<Ma<<'\n';
}

